Skip to main content
GET
/
agent
/
sessions
[BETA] List workspace agent sessions
curl --request GET \
  --url https://api.getpg.ai/public-api/v1/agent/sessions \
  --header 'x-api-key: <api-key>'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Your API key for authentication. Get your API key from the PG:AI dashboard under Settings > API Keys.

Query Parameters

page
integer
default:1

Page number

per_page
integer
default:25

Page size. Default 25, maximum 50 on all list endpoints. Omit to use the default; increase up to 50 only if you need larger pages.

status
string

Filter by status

type
string

Filter by session type

company_id
string

Filter by company UUID

Search

sort_by
string

Sort field

sort_order
string

Sort order

Response

Success

Response data